package com.authine.cloudpivot.ext.enums.inquiry;

/**
 *
 */
public enum ClarifyStatusEnum {
    /**
     * 询价商品状态
     */
    NOT_0_CLARIFY("0", "未澄清"),

    ZC_WAIT_1_CLARIFY("1", "驻场待澄清"),

    VENDOR_WAIT_2_CLARIFY("2", "供应商待澄清");

    private String code;
    private String des;

    private ClarifyStatusEnum(String code, String des) {
        this.code = code;
        this.des = des;
    }

    public String getCode() {
        return code;
    }

    public String getDes() {
        return des;
    }

    public static ClarifyStatusEnum get(String code) {
        for (ClarifyStatusEnum c : ClarifyStatusEnum.values()) {
            if (c.code.toString().equals(code.toString())) {
                return c;
            }
        }
        return null;
    }
}
